/*
 * Copyright (c) 2012,东方口岸科技有限公司
 * All rights reserved.
 * 文件名称：RouterService.java
 * 摘    要：
 * 版本：1.0
 * 作    者：fengzhiyong
 */
package com.cneport.transfer.router.support.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cneport.transfer.router.model.User;
import com.cneport.transfer.router.support.mapper.UserMapper;

@Service
public class UserService {
    /**
     *@CreateDate:2012-6-12
     *@Description:
     */
    @Autowired
    private UserMapper userMapper;

    public List<User> queryUserListService(String clientId) {
        return userMapper.queryUserList(clientId);
    }
    
    public List<User> getUserListService(User user){
    	return userMapper.getUserList(user);
    }
    
    public User getUserByClientId(String clientId){
    	return userMapper.getUserByClientId(clientId);
    }
    
    public int countUserListService(User user){
    	return userMapper.countUserList(user);
    }
    public User queryUserService(String clientId) {
        return userMapper.queryUser(clientId);
    }
    public int insertUserService(User user) {
        return userMapper.insertUser(user);
    }

    public int deleteUserService(String clientId) {
        return userMapper.deleteUser(clientId);
    }

    public int updateUserService(User user) {
        return userMapper.updateUser(user);
    }
}
